all: foo bar
	echo test

out.so:
	touch out.so

.PHONY: target1
target1 $(target2): all
